package com.gbas.cartas;

import com.gbas.model.Mazo;
import com.gbas.model.Naipe;

import java.util.ArrayList;
import java.util.List;

/**
 * User: t50
 * Date: 16-abr-2010
 * Time: 18:29:31
 */
public class MazoCartas {
    Mazo mazo;
    int tipoMazo;
    int px, py;

    public MazoCartas(Mazo mazo, int px, int py) {
        this.mazo = mazo;
        this.px = px;
        this.py = py;
    }

    public List<Carta> getCartas() {
        List<Carta> cartas = new ArrayList<Carta>();
        for (Naipe np : mazo) {
            cartas.add(new Carta(np, px, py));
        }
        return cartas;
    }
}
